<template>
  <div>
  <el-container :style="{ height: screenHeight }">
      <el-aside width="200px">
        <left-menu></left-menu>
      </el-aside>
      <el-container>
        <el-header>
          <header-menu></header-menu>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import LeftMenu from "./LeftMenu.vue";
import HeaderMenu from "./HeaderMenu.vue";

export default {
  components: { LeftMenu, HeaderMenu },
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1",
      screenHeight: document.documentElement.clientHeight + "px",
    };
  },
  methods: {

  },
};
</script>

<style>
.el-header ul {
  float: right;
}

.el-header,
.el-footer {
  background-color: white;
  color: rgb(84, 92, 100);
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #5271FF;
  color: white;
  text-align: center;
}

.el-main {
  background-color: #e9eef3;
  color: rgb(84, 92, 100);
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>